<?php
	$spath = $_POST["filename"];
	$tpath = "../../temp/".basename($spath);
	
	if(!is_dir('../../temp')){
		mkdir('../../temp','0777');
	}
	
	if(is_dir($spath)){
		require_once('xcopy.php');
		copydir($spath,$tpath);
	} else{
		copy($spath,$tpath);
	}
?>
